package pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "my_users")
@Entity
public class MyUser {
    @Id
    private String id;
    private String uname;
    private String psd;
    private Integer age;



    public MyUser() {
    }

    public MyUser(String id, String uname, String psd, Integer age) {
        this.id = id;
        this.uname = uname;
        this.psd = psd;
        this.age = age;
    }

    public MyUser(String uname, String psd, Integer age) {
        this.uname = uname;
        this.psd = psd;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPsd() {
        return psd;
    }

    public void setPsd(String psd) {
        this.psd = psd;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "MyUser{" +
                "id='" + id + '\'' +
                ", uname='" + uname + '\'' +
                ", psd='" + psd + '\'' +
                ", age=" + age +
                '}';
    }
}
